﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;

namespace Mes.Pendant.ProductionWorkOrders
{
    /// <summary>
    /// 生产工单表
    /// </summary>
    public class ProductionWorkOrder:Entity<int>
    {
        /// <summary>
        /// 工单ID
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 工单编码
        /// </summary>
        public string WorkOrderCode { get; set; }
        /// <summary>
        /// 工单名称
        /// </summary>
        public string WorkOrderName { get; set; }
        /// <summary>
        /// 工单类型
        /// </summary>
        public int WorkOrderType { get; set; }
        /// <summary>
        /// 工单来源
        /// </summary>
        public string WorkOrderSource { get; set; }
        /// <summary>
        /// 产品编码
        /// </summary>
        public string ProductCode { get; set; }
        /// <summary>
        /// 产品数量
        /// </summary>
        public string ProductNumber { get; set; }
        /// <summary>
        /// 规格型号
        /// </summary>
        public string SpecificationModel { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public string Unit {  get; set; }
        /// <summary>
        /// 工单数量
        /// </summary>
        public int WorkOrderQuantity { get; set; }
        /// <summary>
        /// 调整数量
        /// </summary>
        public int AdjustmentQuantity { get; set; }
        /// <summary>
        /// 已产数量
        /// </summary>
        public int ProducedQuantity { get; set; }
        /// <summary>
        /// 批次号
        /// </summary>
        public string BatchNumber { get; set; }
        /// <summary>
        /// 客户编码
        /// </summary>
        public string CustomerCode { get; set; }
        /// <summary>
        /// 需求日期
        /// </summary>
        public DateTime? DemandDate { get; set; }
        /// <summary>
        /// 单据状态
        /// </summary>
        public int Dstatus { get; set; }
    }
}
